package com.zhang.learnnacos.app2.controller;

import com.alibaba.fastjson2.JSON;
import com.zhang.learnnacos.api.app2.IUserInterFace;
import com.zhang.learnnacos.api.app2.dto.UserDto;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserInterFaceImpl implements IUserInterFace {

    @Override
    public int addUser(UserDto user) {
        System.out.println("JSON.toJSONString(user) = " + JSON.toJSONString(user));
        return 1;
    }
}
